package com.cloud.alibaba.common.exception;

import cn.hutool.http.HttpStatus;
import lombok.Getter;
import lombok.Setter;

public class RestException extends RuntimeException {
    @Getter
    @Setter
    private Integer status = HttpStatus.HTTP_INTERNAL_ERROR;

    public RestException() {
    }

    public RestException(Integer status) {
        this.status = status;
    }

    public RestException(String message) {
        super(message);
    }

    public RestException(Integer status, String message) {
        super(message);
        this.status = status;
    }
}

